<?php

/**
 * RecepcionEmails form base class.
 *
 * @package    form
 * @subpackage recepcion_emails
 * @version    SVN: $Id: sfDoctrineFormGeneratedTemplate.php 8508 2008-04-17 17:39:15Z fabien $
 */
class RecepcionEmailsForm2 extends BaseFormDoctrine
{
  public function setup()
  {
    $this->setWidgets(array(

      'email'              => new sfWidgetFormInput(),

      'mensaje'            => new sfWidgetFormTextarea(),
      'datainici'          => new sfWidgetFormDate(),
      'datafin'            => new sfWidgetFormDate(),

    ));



    $this->widgetSchema->setNameFormat('recepcion_emails[%s]');
 $this->setValidators(array(
       'datainici'          => new sfValidatorDate(),
      'datafin'            => new sfValidatorDate(),

      'email'    => new sfValidatorString(array('max_length' => 5, 'required' => false)),
      'mensaje' => new sfValidatorString(array('required' => false)),
       ));
    parent::setup();
  }

  public function getModelName()
  {
    return 'RecepcionEmails';
  }

}
